package com.luojie.mapper;


import com.luojie.po.Matches;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface MatchesMapper {

    void insert(Matches matches);

    @Delete("delete from luojie_take_out.matches where id=#{id}")
    void deletById(Integer id);

    Matches selectById(Integer id);


    void updateMatch(Matches matchesDTO,Integer id);

    List<Matches> page(String address, String name, LocalDateTime startTime, LocalDateTime endTime);


    List<Matches> selects();
}
